package com.youlai.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.system.common.result.PageResult;
import com.youlai.system.model.dto.OrderByCategoryTotalDTO;
import com.youlai.system.model.dto.OrderDto;
import com.youlai.system.model.dto.OrderTotalDto;
import com.youlai.system.model.entity.Order;
import com.youlai.system.model.vo.OrderByCategoryTotalVO;
import com.youlai.system.model.vo.OrderTotalStatisticsVO;
import com.youlai.system.model.vo.OrderTotalVO;
import com.youlai.system.model.vo.OrderVO;

import java.util.List;

/**
 * @author cai
 * @create 2024-03-11 20:50
 */
public interface OrderService extends IService<Order> {

    PageResult<OrderVO> getPage(OrderDto orderDto);

    List<OrderTotalVO> getTotal(OrderTotalDto orderTotalDto);

    List<OrderByCategoryTotalVO> getCategoryTotal(OrderByCategoryTotalDTO orderByCategoryTotalDTO);

    List<OrderTotalStatisticsVO> getTotalStatistics(String type);
}
